/**
 * Created by lmn98 on 2016.08.08.
 */
var net = require('net');
var an = require('analysis.js');
var server = net.createServer();
server.on('connection', function (socket) {
    socket.on('close', function () {
        socket.end();
    });
    socket.on('error', function () {});
    socket.on('data', function (data) {
        an._handler(data,socket);
    });
});